import request from '@/utils/request'


export default{
    getTeacherListPage(current,limit,teacherQuery){
        return request({
            url: `/eduservice/edu-teacher/${current}/${limit}`,
            method: 'post',
            data: teacherQuery
          })
    },
   removeTeacherById(id){
        return request({
            url: `/eduservice/edu-teacher/delete/${id}`,
            method: 'delete'
          })
    },
    saveTeacher(teacher){
        return request({
            url: '/eduservice/edu-teacher/saveTeacher',
            method: 'post',
            data: teacher
          })
    },
    getTeacherById(id){
        return request({
            url: `/eduservice/edu-teacher/getTeacher/${id}`,
            method: 'get'
          })
    },
    updateTeacher(id,teacher){
        return request({
            url: `/eduservice/edu-teacher/update/${id}`,
            method: 'put',
            data: teacher
          })
    }
}
